﻿<UserControl
	x:Class="DeltaEngine.Editor.ContentManager.ContentIconAndNameView"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:contentManager="clr-namespace:DeltaEngine.Editor.ContentManager"
	mc:Ignorable="d"
	d:DesignHeight="32" d:DesignWidth="240"
	d:DataContext="{d:DesignInstance Type=contentManager:DesignContentIconAndNameView,
		IsDesignTimeCreatable=True}">
	<Grid MouseLeftButtonDown="ClickOnElement" Name="ContentGrid"
	      MouseRightButtonDown="ClickOnElement" Background="{Binding Path=Brush}">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="24" />
			<ColumnDefinition Width="*" />
		</Grid.ColumnDefinitions>
		<Image
			Height="16" Width="16" VerticalAlignment="Top"
			Source="{Binding Path=Icon}" Margin="0,4,4,0" />
		<TextBlock
			x:Name="ContentName" Width="236" Height="22"
			Grid.Column="1" FontSize="14" Margin="2,4,0,-2"
			HorizontalAlignment="Left" VerticalAlignment="Center"
			FontFamily="Arial" Text="{Binding Path=Name}" />
	</Grid>
</UserControl>